import http from "@/server/http";

//普通任务列表
export const apiNormalTaskList = (params) => {
    return http({
        url: "/task/test/get_list_type1",
        method: "POST",
        data: params,
    })
}



// 量表分类
export const apiGetScaleType = (params) => {
    return http({
        url: "/task/test/get_ordinary_type",
        method: "POST",
        data: params,
    })
}

// 获取团体任务列表
export const apiGetTeamScaleType = (params) => {
    return http({
        url: "/task/test/get_list_type2",
        method: "POST",
        data: params,
    })
}


// 获取题目

export const apiGetQuestion = (params) => {
    return http({
        url: "/task/test/get",
        method: "POST",
        data: params,
    })
}

// 提交题目
export const apiSubmitQuestion = (params) => {
    return http({
        url: "/task/test/commit",
        method: "POST",
        data: params,
    })
}


// 团体提交题目
export const apiTeamSubmitQuestion = (params) => {
    return http({
        url: "/task/test/commit_team",
        method: "POST",
        data: params,
    })
}

// // 临时提交
// export const apiTempSubmitQuestion = (params) => {
//     return http({
//         url: "task/test/save_records",
//         method: "POST",
//         data: params,
//     })
// }



// 获取上次测评的记录
export const apiGetPrevRecord = (params) => {
    return http({
        url: "task/test/get_temp_record",
        method: "POST",
        data: params,
    })
}


// 获取测评设置
export const apiEvaluateSetting = (params) => {
    return http({
        url: "task/setting/get",
        method: "POST",
        data: params,
    })
}

// 获取任务详情

export const apiGetTaskDetail = (params) => {
    return http({
        url: "/task/get",
        method: "POST",
        data: params,
    })
}


// 获取团体任务详情
export const apiGetTeamTaskDetail = (params) => {
    return http({
        url: "/task/test/report/get_team_report",
        method: "POST",
        data: params,
    })
}


